home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail.cf / others / cf.dms@hermes.ai.mit.edu next >
Encoding:
Text File  |  1987-03-19  |  6.4 KB  |  289 lines

  1. ############################################################
  2. #
  3. #    SENDMAIL CONFIGURATION FILE
  4. #
  5. #    MIT Artificial Intelligence Laboratory
  6. #    David M. Siegel (dms@hermes.ai.mit.edu)
  7. #
  8. #    General configuration information:
  9. #     * Define 'P' for uucp forwarding host if machine does not
  10. #       run uucp.
  11. #     * If machine runs uucp define uucp hostname as 'U'.
  12. #     * Put additional host names in /etc/mailhosts file if this
  13. #       machine accepts mail for them. Create empty file otherwise.
  14. #     * Put chaoshosts in /etc/chaoshosts. Create empty file 
  15. #       otherwise.
  16. #     * To have chaosnet only hosts routed via this host, included
  17. #       them in /etc/chaosonly. Otherwise create empty file.
  18. #
  19. ############################################################
  20.  
  21. # domain
  22. DDAI.MIT.EDU
  23.  
  24. # official hostnames
  25. Dj$w
  26. Cw$w
  27.  
  28. # UUCP forwarding host (define this or uucp hostname, but not both)
  29. #DPHERMES.AI.MIT.EDU
  30.  
  31. # UUCP hostname
  32. DUmit-hermes
  33. CUmit-hermes hermes
  34.  
  35. # List of chaosnet hosts
  36. FC/etc/chaoshosts
  37.  
  38. # List of host only on the chaosnet
  39. FE/etc/chaosonly
  40.  
  41. ############################################################
  42. #
  43. #    General configuration information
  44. #
  45. ############################################################
  46.  
  47. DV4.7
  48.  
  49. ######################
  50. #   Special macros   #
  51. ######################
  52.  
  53. # my name
  54. DnMAILER-DAEMON
  55. # UNIX header format
  56. DlFrom $g  $d
  57. # delimiter (operator) characters
  58. Do:%@!^=/[]
  59. # format of a total name
  60. Dq$g$?x ($x)$.
  61. # SMTP login message
  62. De$j Sendmail $v/$V ready at $b
  63.  
  64. #################
  65. #   Options     #
  66. #################
  67.  
  68. # location of alias file
  69. OA/usr/lib/aliases
  70. # rebuild alias database if needed
  71. OD
  72. # default delivery mode (deliver in background)
  73. Odbackground
  74. # (don't) connect to "expensive" mailers
  75. #Oc
  76. # temporary file mode
  77. OF0644
  78. # default GID
  79. Og1
  80. # location of help file
  81. OH/usr/lib/sendmail.hf
  82. # log level
  83. OL9
  84. # Send mail to self even in aliases
  85. Om
  86. # default messages to old style
  87. Oo
  88. # queue directory
  89. OQ/usr/spool/mqueue
  90. # read timeout -- violates protocols
  91. Or2h
  92. # status file
  93. OS/usr/lib/sendmail.st
  94. # queue up everything before starting transmission
  95. Os
  96. # default timeout interval
  97. OT3d
  98. # time zone names (V6 only)
  99. OtEST,EDT
  100. # default UID
  101. Ou1
  102. # wizard's password
  103. OWrhWkkc*B2TH1c
  104.  
  105. ###########################
  106. #   Message precedences   #
  107. ###########################
  108.  
  109. Pfirst-class=0
  110. Pspecial-delivery=100
  111. Pjunk=-100
  112.  
  113. #####################
  114. #   Trusted users   #
  115. #####################
  116.  
  117. Troot daemon uucp network dms
  118.  
  119. #########################
  120. #   Format of headers   #
  121. #########################
  122.  
  123. H?P?Return-Path: <$g>
  124. HReceived: $?sfrom $s $.by $w; $b
  125. H?D?Resent-Date: $a
  126. H?D?Date: $a
  127. H?F?Resent-From: $q
  128. H?F?From: $q
  129. H?x?Full-Name: $x
  130. HSubject:
  131. # HPosted-Date: $a
  132. # H?l?Received-Date: $b
  133. H?M?Resent-Message-Id: <$t.$i@$j>
  134. H?M?Message-Id: <$t.$i@$j>
  135.  
  136. ############################################################
  137. #
  138. #    Rewriting rules:
  139. #
  140. #            +--> 0 --> resolved address
  141. #            |   
  142. #            |       +--> 1 --> S --+
  143. #     addr --> 3 ---> D --|           |--> 4 --> message
  144. #                +--> 2 --> R --+
  145. #
  146. #        D - sender domaion addition
  147. #        S - mailer specific sender rewriting
  148. #        R - mailer specific recipient rewriting
  149. #
  150. ############################################################
  151.  
  152. ################################
  153. #  Sender Field Pre-rewriting  #
  154. ################################
  155. S1
  156.  
  157. ###################################
  158. #  Recipient Field Pre-rewriting  #
  159. ###################################
  160. S2
  161.  
  162. #################################
  163. #  Final Output Post-rewriting  #
  164. #################################
  165. S4
  166.  
  167. R@            $@                handle <> error addr
  168. R$*<$+>$*        $1$2$3                defocus
  169. R@$+:$+:$+        $@@$1,$2:$3            <route-addr> canonical
  170.  
  171. # delete duplicate local names -- mostly for arpaproto.mc
  172. R$+%$=w@$=w        $1@$3                u%UCB@UCB => u@UCB
  173.  
  174. ###########################
  175. #  Name Canonicalization  #
  176. ###########################
  177. S3
  178.  
  179. # handle "from:<>" special case
  180. R<>            $@@                turn into magic token
  181.  
  182. # basic textual canonicalization
  183. R$*<$+>$*        $2                basic RFC821/822 parse
  184. R$+ at $+        $1@$2                "at" -> "@" for RFC 822
  185. R$*<$*>$*        $1$2$3                in case recursive
  186.  
  187. # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
  188. R@$+,$+            @$1:$2                change all "," to ":"
  189.  
  190. # more miscellaneous cleanup
  191. R$+:$*;@$+        $@$1:$2;@$3            list syntax
  192. R$+@$+            $@$1<@$[$2$]>            focus on domain
  193.  
  194. # don't remove % if we have a uucp type address
  195. R$-!$+            $@$1!$2                return unmodified
  196.  
  197. # convert old-style addresses to a domain-based address
  198. R$+%$-            $@$1<@$[$2$]>            user%hosta
  199.  
  200. #####################
  201. #  Resolve Mailers  #
  202. #####################
  203. S0
  204.  
  205. # delete the local info
  206. R$*<$*$=w>$*        $1<$2>$4            thishost
  207. R$*<@>            $1                strip nul trash
  208.  
  209. # make canonical
  210. R$*<$*>$*        $1$2$3                defocus
  211. R$+            $:$>3$1                make canonical    
  212.  
  213. # handle special cases
  214. R@            $#local$:MAILER-DAEMON        handle <> form
  215. R$*<@[$+]>$*        $#tcp$@[$2]$:$1@[$2]$3        numeric internet spec
  216.  
  217. # handle ChaosNet now
  218. R$*<@$=C>$*        $#chaos$@$2$:$1@$2
  219.  
  220. # all other internet mail
  221. R$*<@$+>$*        $#tcp$@$2$:$1<@$2>$3
  222.  
  223. # handle uucp style names by sending to forwarding host or sending direct
  224. R$-!$+            $?P$#tcp$@$P$:$1!$2$|$#uucp$@$1$:$2$.
  225.  
  226. # handle local mail
  227. R$*            $#local$:$1
  228.  
  229. ############################################################
  230. #
  231. #    Local and Program Mailer specification
  232. #
  233. ############################################################
  234.  
  235. Mlocal,    P=/bin/mail, F=rlsDFMmn, S=10, R=20, A=mail -d $u
  236. Mprog,    P=/bin/sh,   F=lsDFMe,   S=10, R=20, A=sh -c $u
  237.  
  238. S10
  239. R@        MAILER-DAEMON        errors to mailer-daemon
  240.  
  241. S20
  242. R$+        $@$1            Noop rule
  243.  
  244. ############################################################
  245. #
  246. #    Arpanet TCP Mailer specification
  247. #
  248. ############################################################
  249.  
  250. Mtcp,    P=[IPC], F=msDFMueXL, S=27, R=28, A=IPC $h, E=\r\n
  251.  
  252. S27
  253. R$-            $1@$w        tack our host onto userid
  254. R$*@$=E            $1%$2@$w    if chaos-only forward, add %host
  255.  
  256. S28
  257. R$-            $1@$w        tack our host onto userid
  258. R$*@$=E            $1%$2@$w    if chaos-only forward, add %host
  259.  
  260. ################################################################
  261. #
  262. #    Chaosnet Mailer specification
  263. #
  264. ################################################################
  265.  
  266. Mchaos, P=/usr/lib/mailers/chaosmail, F=nsmFDuhC, S=25, R=26, A=chaosmail $h $u
  267.  
  268. S25
  269. R$-            $1@$w        tack our host onto userid
  270.  
  271. S26
  272. R$-            $1@$w        tack our host onto userid
  273.  
  274. ############################################################
  275. #
  276. #    UUCP Mailer specification
  277. #
  278. ############################################################
  279.  
  280. Muucp, P=/usr/bin/uux, F=sDFMhuU, S=13, R=23, M=100000,
  281.         A=uux - -r -z -a$f -gC $h!rmail ($u)
  282.  
  283. S13
  284. R$=U!$+            $2            strip local name
  285. R$+            $:$U!$1            stick on our host name
  286.  
  287. S23
  288. R$=U!$+            $2            strip local name
  289.